from django.conf.urls.defaults import *
from django.views.static import *
from django.conf import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^webtester/', include('webtester.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    (r'^admin/', include(admin.site.urls)),
    (r'^accounts/login/$', 'django.contrib.auth.views.login'),
    (r'^accounts/logout/$', 'django.contrib.auth.views.logout'),
    (r'^tester/ping/$', 'webtester.ping.views.index'),
    (r'^tester/ping-executed/$', 'webtester.ping.views.executed'),
    (r'^tester/ping-executed/process/$', 'webtester.ping.views.process'),
    (r'^tester/traceroute/$', 'webtester.traceroute.views.index'),
    (r'^tester/traceroute-executed/$', 'webtester.traceroute.views.executed'),
    (r'^tester/traceroute-executed/process/$', 'webtester.traceroute.views.process'),
    (r'^tester/host/$', 'webtester.host.views.index'),
    (r'^tester/host-executed/$', 'webtester.host.views.executed'),
    (r'^tester/host-executed/process/$', 'webtester.host.views.process'),
    (r'^tester/netcat/$', 'webtester.netcat.views.index'),
    (r'^tester/netcat-executed/$', 'webtester.netcat.views.executed'),
    (r'^tester/netcat-executed/process/$', 'webtester.netcat.views.process'),
)

